package com.mask.demo.controller;

import com.mask.demo.dao.UserDao;
import com.mask.demo.dao.UserDaoAnno;
import com.mask.demo.service.UserService;
import com.mask.demo.service.UserServiceAnno;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * ClassName UserController
 * Create by hx
 * Date 2021/9/15 7:14 下午
 */
@Controller(value = "userController")
public class UserControllerAnno {

    @Autowired
    public UserServiceAnno userService;

    public void hello(){
        userService.hello();
        System.out.println("userController say Hello Spring!");
    }
}
